#ifndef CLIENTMESSAGEHANDLER_H_
#define CLIENTMESSAGEHANDLER_H_

#include <queue>

#include "message/Message.h"
#include "../util/Log.h"
#include "../recommender/UserProfileManager.h"

class ClientMessageHandler {
private:
	pthread_mutex_t mutex;
	std::queue<Message> messages_queue;
	UserProfileManager* userProfileManager;

public:
	ClientMessageHandler();

	void enqueue_message(Message& message);
	void proccess_messages();
};

#endif /* CLIENTMESSAGEHANDLER_H_ */
